%clear {
    &:after {
        content: '';
        display: block;
        clear: both;
    }
}

%ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

%flex1 {
    display: table;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 0;
    text-align: center;
    > * {
        display: table-cell;
        display: block;
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
        width: 1%;
    }
}

%flex2 {
    display: table;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 0;
    text-align: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    > * {
        display: table-cell;
        display: block;
    }
}

%hide-line {
    text-overflow: -o-ellipsis-lastline;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

%absmiddle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

//角标占位符
%mark {
    position: absolute;
    top: 0;
    right: 0;
    content: '';
    display: block;
    width: 0;
    height: 0;
}

//水平等分居中
%vertical-center {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}